package com.jeesite.modules.customerclass.service;

import java.util.List;

import com.jeesite.modules.common.vo.CommonSelectDataVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeesite.common.entity.Page;
import com.jeesite.common.service.TreeService;
import com.jeesite.modules.customerclass.entity.CustomerClass;
import com.jeesite.modules.customerclass.dao.CustomerClassDao;

/**
 * 客户分类Service
 * @author 码脑洞
 * @version 2025-04-13
 */
@Service
public class CustomerClassService extends TreeService<CustomerClassDao, CustomerClass> {
	
	/**
	 * 获取单条数据
	 * @param customerClass
	 * @return
	 */
	@Override
	public CustomerClass get(CustomerClass customerClass) {
		return super.get(customerClass);
	}
	
	/**
	 * 查询分页数据
	 * @param customerClass 查询条件
	 * @param customerClass page 分页对象
	 * @return
	 */
	@Override
	public Page<CustomerClass> findPage(CustomerClass customerClass) {
		return super.findPage(customerClass);
	}
	
	/**
	 * 查询列表数据
	 * @param customerClass
	 * @return
	 */
	@Override
	public List<CustomerClass> findList(CustomerClass customerClass) {
		return super.findList(customerClass);
	}
	
	/**
	 * 保存数据（插入或更新）
	 * @param customerClass
	 */
	@Override
	@Transactional
	public void save(CustomerClass customerClass) {
		super.save(customerClass);
	}
	
	/**
	 * 更新状态
	 * @param customerClass
	 */
	@Override
	@Transactional
	public void updateStatus(CustomerClass customerClass) {
		super.updateStatus(customerClass);
	}
	
	/**
	 * 删除数据
	 * @param customerClass
	 */
	@Override
	@Transactional
	public void delete(CustomerClass customerClass) {
		super.delete(customerClass);
	}

	public List<CommonSelectDataVO> selectCustomerClassList() {
		return dao.selectCustomerClassList();
	}
}